/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.stt.typeofwork.entity;

import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 工种信息Entity
 * @author stt
 * @version 2022-10-07
 */
@Data
public class TypeOfWork extends DataEntity<TypeOfWork> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="工种名称", align=2, sort=1)
	private String name;		// 工种名称
    @NotNull(message="计件费用/工时费不能为空")
	@ExcelField(title="计件费用/工时费", align=2, sort=2)
	private Double cost;		// 计件费用/工时费
	@ExcelField(title="备用1", align=2, sort=3)
	private String by1;		// 备用1
	
	public TypeOfWork() {
		super();
	}
	
	public TypeOfWork(String id){
		super(id);
	}
}